aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/bitcoin/[address]/+page.server.ts
blob: a9b7278713447b6d01d4d74b8393d8f1206c9592 (plain) (blame)
1
2
3
4
5
6
7
import { auth, get } from "$lib/utils";

export async function load({ cookies }) {
  let aid = cookies.get("aid");
  let { balance } = await get(`/account/${aid}`, auth(cookies));
  return { balance };
}